package edu.fiu.cis.personalize.shared;

public class ManagedBlock
{
	public static <P,R> R exceptionHandled(IBlock<P, R> block){
		try {
			return block.execute();
		}
		catch(Exception e){
			block.handleException(e);
		}
		return null;
	}

}
